//
//  LESegmentView.h
//  CreditAddressBook
//
//  Created by Lee on 15/10/12.
//  Copyright © 2015年 Lee. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "XCTabBarView.h"

typedef void (^ClickAtIndexBlock)(NSInteger buttonIndex);

@interface LESegmentView : UIView

/**
 *  下标线颜色
 */
@property (nonatomic ,strong) UIColor *indexLineColor;

/**
 *  底部线颜色
 */
@property (nonatomic ,strong) UIColor *bottomLineColor;

/**
 *  字体颜色
 */
@property (nonatomic ,strong) UIColor *titleColor;

/**
 *  选中的字体的颜色
 */
@property (nonatomic ,strong) UIColor *selectedTitleColor;

/**
 *  选中的选项
 */
@property (nonatomic ,assign) LESelectedIndex segmentSelectedIndex;

+ (XCTabBarView *)segmentWithTitles:(NSArray *)titles andImageNames:(NSArray *)images andFrame:(CGRect)frame clickAtIndex:(ClickAtIndexBlock)clickAtIndex;

- (void)addSegmentButtonWithTitles:(NSArray *)titles andImageNames:(NSArray *)images clickAtIndex:(ClickAtIndexBlock)clickAtIndex;

- (void)addSegmentButtonWithTitles:(NSArray *)titles clickAtIndex:(ClickAtIndexBlock)clickAtIndex;
@end
